package cn.itcast.day02.demo02;

public class Demo01PhoneOne {
    public static void main(String[] args) {
        //根据Phone类创建一个名为one的对象
        Phone one = new Phone();
        System.out.println(one.brand); //null
        System.out.println(one.color); //null
        System.out.println(one.price); //null
        System.out.println("=================");
        one.brand = "苹果";
        one.color = "黑色";
        one.price = "6789.0";
        System.out.println(one.brand);  //苹果
        System.out.println(one.color);  //黑色
        System.out.println(one.price);   //6789
        System.out.println("==================");
        one.call("乔布斯"); //乔布斯
        one.sendMessage(); //群发消息
    }
}
